package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.CommodityBusinessMapper;
import com.richest.api.service.ICommodityBusinessService;
import com.richest.bean.CommodityBusinessBean;

/**
 * 商品经营信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class CommodityBusinessServiceImpl implements ICommodityBusinessService {

	@Autowired
	private CommodityBusinessMapper mapper;

	@Override
	public Integer commodityBusinessAdd(CommodityBusinessBean bean) {
		return mapper.commodityBusinessAdd(bean);
	}

	@Override
	public Integer commodityBusinessUpdate(CommodityBusinessBean bean) {
		return mapper.commodityBusinessUpdate(bean);
	}

	@Override
	public Integer commodityBusinessDelete(Long id) {
		return mapper.commodityBusinessDelete(id);
	}

	@Override
	public CommodityBusinessBean commodityBusinessSelectOne(Long id) {
		return mapper.commodityBusinessSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> commodityBusinessSelectMap(Map<String, Object> params) {
		return mapper.commodityBusinessSelectMap(params);
	}
}
